import os
import sys

while True:
    # 运行data.exe, force.exe 和 std.exe
    os.system("python data.py > input.txt")
    os.system("python force.py < input.txt > fout.txt")
    os.system("python std.py < input.txt > sout.txt")

    # 对比fout.txt 和 sout.txt
    result = os.system("fc fout.txt sout.txt")

    if result == 0:
        print("通过了")
    else:
        print("WA")
        break